package time;

public class Clock {
	static Clock instance;
	int time;
	private Clock(int time){
		this.time = time;
	}
	static public int now(){
		return getInstance().time;
	}
	static public Clock getInstance(){
		if(instance == null)instance = new Clock(0);
		return instance;
	}
	public void setTime(int time){
		this.time = time;
	}

}
